<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Welcome</title>
</h:head>

<h:body>
	<h:form>
		<h3>Login</h3>

		<table>
			<tr>
				<td>Username:</td>
				<td><h:inputText value="#{userBean.name}" /></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><h:inputSecret value="#{userBean.password}" /></td>
			</tr>
		</table>

		<h:commandButton value="Login" action="#{userBean.login()}" />
	</h:form>
</h:body>
</html>
